//
//  HMSlideMenu.h
//  HMMarket
//
//  Created by 孙鹏飞 on 2017/5/8.
//  Copyright © 2017年 homai. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HMSlideMenu;
@protocol HMSlideMenuDelegate <NSObject>
@optional

- (void)HMSlideMenu:(HMSlideMenu *)menu clickIndex:(NSIndexPath *)index;

- (void)HMSlideMenu:(HMSlideMenu *)menu clickIcon:(UIImageView *)icon;

- (void)HMSlideMenuDidClickLoginBtn:(HMSlideMenu *)menu;
@end

@interface HMSlideMenu : UIView

@property (nonatomic, weak) id <HMSlideMenuDelegate> delegate;

@property (nonatomic, strong) UIImageView * iconView;

@property (nonatomic, strong) UILabel * nameLabel;

@property (nonatomic, strong) UIButton * loginBtn;

+ (instancetype)slideMenu;

+ (instancetype)showInSuperView:(UIView *)view;

- (void)hide;

@end
